const { ccclass, property } = cc._decorator;

import Utils = require("../../utils/Utils");
import RepairBaseView from "./RepairBaseView";
@ccclass
export default class RepairPersonTwoView extends RepairBaseView {

    _Step = ["shou","pingzi","yaogao","mianqiu"];//关卡标识 用于icon名字 拼接
    _StepList = [1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4];//13个步骤
    _StepNum = 4;//4关
    _guidePos = [
        cc.v2(197,292),cc.v2(91,3),cc.v2(12,-83),cc.v2(-95,-223),cc.v2(-92,-186),
        cc.v2(24,-97),cc.v2(111,-9),cc.v2(157,289),cc.v2(171,355),cc.v2(127,-11),
        cc.v2(-84,-184),cc.v2(-205,-339),cc.v2(176,354)
    ];

    start(){
        super.start();
        this.aniSpine.setCompleteListener(() => {
            this.showGuide();
        });
        this.aniSpine.setAnimation(0, "000", false);
    };

    playSound(){
        let str = this._point >= 10 ? "0" : "00";
        let name = str + this._point
        Utils.audioManager.playSound("huazhuang/mini/person/step2/" + name);
    };
    
    makeDot(){
    };
}
